home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / operation-graduates.swf / scripts / DefineSprite_958_frame / frame_1 / DoAction.as
Text File  |  2011-10-17  |  2KB  |  60 lines

  1. this.back.gotoAndStop("empty");
  2. this.next.gotoAndStop("inactive");
  3. this.play.gotoAndStop("inactive");
  4. this.back.hitArea = this.back.ha;
  5. this.next.hitArea = this.next.ha;
  6. if(this.next.hitTest(_root._xmouse,_root._ymouse,false))
  7. {
  8.    this.next.gotoAndPlay("active");
  9. }
  10. if(this.play.hitTest(_root._xmouse,_root._ymouse,false))
  11. {
  12.    this.play.gotoAndPlay("active");
  13. }
  14. this.next.onDragOver = this.next.onRollOver = function()
  15. {
  16.    this.gotoAndPlay("active");
  17.    _root.playSound("sound.rollover");
  18. };
  19. this.next.onDragOut = this.next.onRollOut = function()
  20. {
  21.    this.gotoAndStop("inactive");
  22. };
  23. this.next.onPress = function()
  24. {
  25.    _root.playSound("sound.onpress");
  26. };
  27. this.next.onRelease = function()
  28. {
  29.    _parent.frame.nextFrame();
  30.    _root.playSound("sound.onrelease");
  31. };
  32. this.back.onDragOver = this.back.onRollOver = function()
  33. {
  34.    this.useHandCursor = false;
  35. };
  36. this.back.onDragOut = this.back.onRollOut = null;
  37. this.back.onPress = this.back.onRelease = null;
  38. this.play.onDragOver = this.play.onRollOver = function()
  39. {
  40.    this.gotoAndPlay("active");
  41.    _root.playSound("sound.rollover");
  42. };
  43. this.play.onDragOut = this.play.onRollOut = function()
  44. {
  45.    this.gotoAndStop("inactive");
  46. };
  47. this.play.onPress = function()
  48. {
  49.    _root.playSound("sound.onpress");
  50. };
  51. this.play.onRelease = function()
  52. {
  53.    var _loc1_ = _root;
  54.    myTracker.track();
  55.    _loc1_.music.intro.stop();
  56.    _loc1_.playSound("sound.onrelease");
  57.    _loc1_.initGame(_loc1_.pickedNumbuh);
  58.    _parent.removeMovieClip();
  59. };
  60.